import { ajax } from "@/utils/request";

//添加购物车数据 请求参数
export function addCartFn(data:any){
    return ajax({
        url:'/cartlist',
        method:'post',
        data
    }
    )
}

export function getCartFn(){
    return ajax({
        url:'/cartlist',
        method:'get',
        
    }
    )
}

//删除购物车数据 请求参数  app.delete('/api/cartlist/:id'
export function delCartFn(id:number){
    return ajax({
        url:'/cartlist/'+id,    //实际是proid
        method:'delete',     
    }
    )
}